package xyz.eden.boot.core.result;

import lombok.AllArgsConstructor;
import lombok.Getter;
import xyz.eden.boot.core.enums.ICodeMsgEnum;

/**
 * ResultSet Enum
 *
 * @author gavin
 * @version 1.0
 * @descriptor
 * @date 2022/12/6 16:56
 */
@Getter
@AllArgsConstructor
public enum ResultSetEnum implements ICodeMsgEnum<Integer> {

    /**
     * 操作成功
     */
    SUCCESS(0, "success"),
    /**
     * 参数错误
     */
    ERROR_PARAM(1000, "参数错误"),
    /**
     * 业务错误
     */
    ERROR_BUSINESS(3000, "业务错误"),
    /**
     * 系统错误
     */
    ERROR_SYSTEM(6000, "系统错误");

    private final Integer code;
    private final String msg;
}
